toToolkit

open fun toToolkit(device: Device, bitmap: Bitmap): Image

Creates and returns an instance of Image obtained from the given bitmap. The image will have the same width and height as the bitmap.

Parameters

device

the device on which to the image wll be created

bitmap

the bitmap used to obtain Image

Throws

when the given bitmap size is empty